package com.sinochem.yunlian.ship.common.enums;

import lombok.Getter;

/**
 * 访问量统计 （方便定时处理Redis中的key）
 */
public enum RequestCountKey {
	
	// 船舶浏览量
    UCENTER_KEY_SHIP_COUNT_PREFIX("ucenter:key:count:ship:%s", "船舶浏览量"),
    
    // 货盘浏览次数
    TRADE_MATERIAL_TOTALVIEWS("trade:material:totalViews:%s", "货盘浏览次数");
	
	@Getter
	public String key;
	@Getter
	public String Des;
	
	RequestCountKey(String key, String Des) {
		
       this.key = key;
       this.Des = Des;
	}
	
	
	public static RequestCountKey[] getRequestCountKeys() {
		
		return RequestCountKey.values();
	}
	
	public static void main(String[] args) {
		
		for (RequestCountKey key :  getRequestCountKeys()) 
		
			System.out.println(key.getKey().replace("%s", "*"));
		
	}
	
}
